﻿<mvvm:View x:Class="HelloWorld.Startup.Views.MenuView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mvvm="clr-namespace:HelloWorld.Startup.MVVM"
             mc:Ignorable="d" x:Name="view"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0">
            <Border.Background>
                <SolidColorBrush Color="White" Opacity="0.1"/>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="LocalizationModel" TextBlock.FontSize="12" TextBlock.Foreground="White" TextBlock.FontWeight="Bold" Margin="10,10,0,0"/>
                <Button Grid.Row="1" Content="{Binding ElementName=view, Path=LocalizationModel.DynamicLocalization}" Command="{Binding OpenLMDynamicLocalizationCommand}" Margin="10,10,10,10"/>
                <Button Grid.Row="2" Content="{Binding ElementName=view, Path=LocalizationModel.StaticLocalization}" Command="{Binding OpenLMStaticLocalizationCommand}" Margin="10,0,10,10"/>
            </Grid>
        </Border>
        <Border Grid.Row="1">
            <Border.Background>
                <SolidColorBrush Color="White" Opacity="0.1"/>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="ViewModel" TextBlock.FontSize="12" TextBlock.Foreground="White" TextBlock.FontWeight="Bold" Margin="10,0,0,0"/>
                <Button Grid.Row="1" Content="{Binding ElementName=view, Path=LocalizationModel.DynamicLocalization}" Command="{Binding OpenPMDynamicLocalizationCommand}" Margin="10,10,10,10"/>
                <Button Grid.Row="2" Content="{Binding ElementName=view, Path=LocalizationModel.StaticLocalization}" Command="{Binding OpenPMStaticLocalizationCommand}"  Margin="10,0,10,10"/>
            </Grid>
        </Border>
    </Grid>
</mvvm:View>
